module.exports = {
  switchSelector: {
    type: String,
    default: 'body',
    name: '面板开关选择器',
    filedType: 'string'
  },

  selfCloseSwitch: {
    type: String,
    default: '',
    name: '自身关闭开关',
    nameTip: '指定了该开关后，只能在面板内部关闭面板',
    filedType: 'string'
  },

  trigger: {
    type: String,
    default: 'click',
    name: '触发事件',
    nameTip: '如果要兼容pad，请选择click事件',
    filedType: 'select',
    options: [
      {
        name: '鼠标单击时显示面板',
        value: 'click'
      },
      {
        name: '鼠标滑过时显示触发',
        value: 'hover'
      }
    ]
  },

  containerElement: {
    type: String,
    default: 'body',
    name: '挂载点',
    filedType: 'string'
  },

  positionElement: {
    type: String,
    default: 'auto',
    name: '参照哪个元素定位',
    nameTip: '默认值:auto-参照开关元素定位',
    filedType: 'string'
  },

  placement: {
    type: String,
    default: 'auto',
    name: '从哪个位置弹出面板',
    filedType: 'select',
    options: [
      {
        name: '自动计算',
        value: 'auto'
      },
      {
        name: 'top-left',
        value: 'top-left'
      },
      {
        name: 'top-center',
        value: 'top-center'
      },
      {
        name: 'right-top',
        value: 'right-top'
      },
      {
        name: 'right-center',
        value: 'right-center'
      },
      {
        name: 'right-bottom',
        value: 'right-bottom'
      },
      {
        name: 'bottom-left',
        value: 'bottom-left'
      },
      {
        name: 'bottom-cente',
        value: 'bottom-center'
      },
      {
        name: 'bottom-right',
        value: 'bottom-right'
      },
      {
        name: 'left-top',
        value: 'left-top'
      },
      {
        name: 'left-center',
        value: 'left-center'
      },
      {
        name: 'left-bottom',
        value: 'left-bottom'
      }
    ]
  },

  noArrow: {
    type: Boolean,
    default: true,
    name: '隐藏箭头',
    nameTip: '默认参数开关元素定位',
    filedType: 'switch'
  }
}
